<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%-- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import = "java.util.HashMap" %> --%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>시골가게 - 관리자페이지</title>
<link href="./css/css.css" rel="stylesheet" type="text/css">
</head>
<body>


<center>
<br>
<table width="753" border="0" class="BTABLE">
	<tr>
		<td class="BTD2" align="center">회원번호</td>
		<td class="BTD2" align="center">아이디</td>
		<td class="BTD2" align="center">비밀번호</td>
		<td class="BTD2" align="center">이름</td>
		<td class="BTD2" align="center">이메일</td>
		<td class="BTD2" align="center">전화번호</td>
		<td class="BTD2" align="center">권한</td>
		<td class="BTD2" align="center">가입일</td>
		<td ></td>
	</tr>
	<tr>
		<td height="1" colspan="10"></td>
	</tr>

<s:iterator value="list" status="stat">
	<s:url id="viewURL" action="adminMemberView">
		<s:param name="no">
			<s:property value="no" />
		</s:param>
		<s:param name="currentPage">
			<s:property value="currentPage" />
		</s:param>
	</s:url>
	<tr bgcolor="#FFFFFF" align="center">
		<td align="center"><s:property value="no" /></td>
		<td align="left"><s:a href="%{viewURL}">
			<s:property value="id" />
		</s:a></td>
		<td align="left"><s:property value="password" /></td>
		<td align="left"><s:property value="name" /></td>
		<td align="left"><s:property value="email" /></td>
		<td align="left"><s:property value="phone" /></td>
		<td align="center"><s:property value="power" /></td>
		<td align="center"><s:property value="regdate" /></td>
		<td align="center"><input  type="button" value="수정" class="BBUTTON" 
				onClick="javascript:location.href='adminMemberView.action?no=<s:property value="no" />'">
			<input type="button" value="삭제" class="BBUTTON" 
				onClick="javascript:location.href='adminMemberDelete.action?no=<s:property value="no" />&currentPage=<s:property value="currentPage" />'"></td>
			</tr>
		</s:iterator>
<s:if test="list.size() <= 0">
	<tr bgcolor="#FFFFFF">
		<td colspan="10" align="center">등록된 회원이 없습니다.</td>
	</tr>
</s:if>
	<tr align="center">
		<td colspan="10"><br><s:property value="pagingHtml" escape="false" /></td>
	</tr>
	<tr align="right">
		<td colspan="10"></td>
	</tr>
	<tr align="center">
		<td align="center" colspan="10">
			<form align="center" >
				<select name="searchNum" class="BSELECT">
					<option value="0">이름</option>
					<option value="1">아이디</option>
					<option value="2">전화번호</option>
				</select>
				<s:textfield name="searchKeyword" theme="simple" value="" cssStyle="width:180px" maxlength="20" />
				<input name="submit" type="submit" value="검색" class="BBUTTON">
			</form>
		</td>
	</tr>

</table><br>
</center>
</body>
</html>